<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewContratoTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewContratoLabel_id}"/>
                    <h:outputText value="#{contratoController.selected.id}" title="#{bundle.ViewContratoTitle_id}"/>
                    <h:outputText value="#{bundle.ViewContratoLabel_cargoid}"/>
                    <h:outputText value="#{contratoController.selected.cargoid}" title="#{bundle.ViewContratoTitle_cargoid}"/>
                    <h:outputText value="#{bundle.ViewContratoLabel_deptoid}"/>
                    <h:outputText value="#{contratoController.selected.deptoid}" title="#{bundle.ViewContratoTitle_deptoid}"/>
                    <h:outputText value="#{bundle.ViewContratoLabel_empid}"/>
                    <h:outputText value="#{contratoController.selected.empid}" title="#{bundle.ViewContratoTitle_empid}"/>
                    <h:outputText value="#{bundle.ViewContratoLabel_fecha}"/>
                    <h:outputText value="#{contratoController.selected.fecha}" title="#{bundle.ViewContratoTitle_fecha}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewContratoLabel_sueldo}"/>
                    <h:outputText value="#{contratoController.selected.sueldo}" title="#{bundle.ViewContratoTitle_sueldo}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{contratoController.destroyAndView}" value="#{bundle.ViewContratoDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewContratoEditLink}"/>
                <br />
                <h:commandLink action="#{contratoController.prepareCreate}" value="#{bundle.ViewContratoCreateLink}" />
                <br />
                <h:commandLink action="#{contratoController.prepareList}" value="#{bundle.ViewContratoShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewContratoIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
